package com.example.securitytest.service;

import com.example.securitytest.domain.Item;

import java.util.List;

public interface ItemService {
    List<Item> getAllItems();
    Item getItemByName(String name);
    Item createItem(Item item);
    Item updateItem(String name, Item item);
    void deleteItem(String name);

    List<Item> uploadItems(List<Item> items); // 批量上传
    List<Item> getItemsByPriceRange(double minPrice, double maxPrice); // 根据价格区间检索
}
